package com.navinfo.platform.basicdatastatistics.dto.qingqi;

import com.navinfo.platform.basicdatastatistics.dto.ICustomDto;
import lombok.Data;
import org.apache.spark.sql.Row;

@Data
public class CustomDto implements ICustomDto {

    private Long rpmRangeOver2600Mileage;
    /**
     * 超区间发动机转速(>2300RPM)时长单位:S
     */
    private Long rpmRangeOver2600Duration;
    /**
     * 超区间发动机转速(>2300RPM)油耗单位:ML
     */
    private Long rpmRangeOver2600Fuel;

    @Override
    public void setCustomDtoInfo(Row row) {
        this.rpmRangeOver2600Mileage = row.getAs("rpm_range_over2600_mileage");
        this.rpmRangeOver2600Duration = row.getAs("rpm_range_over2600_duration");
        this.rpmRangeOver2600Fuel = row.getAs("rpm_range_over2600_fuel");
    }
}
